﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： RefundEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-10-30
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Entity
{
	/// <summary>
	///订单退款表数据实体  
	/// </summary>
    [PrimaryKey("RefundId")]
	public class Refund
	{
		///<summary>
		///订单退款表
		///</summary>
		public Refund()
		{
		}	
    
		
		///<summary>
		///退款Id
		///</summary>
        [Column("RefundId","退款Id")]
        public int RefundId { get; set; }

		///<summary>
		///订单Id
		///</summary>
        [Column("BusinessID","订单Id")]
        public long BusinessID { get; set; }

		///<summary>
		///退款申请Id
		///</summary>
        [Column("ApplyId","退款申请Id")]
        public int ApplyId { get; set; }

		///<summary>
		///支付Id
		///</summary>
        [Column("PayId","支付Id")]
        public int PayId { get; set; }

		///<summary>
		///1-订单标价，2-补单
		///</summary>
        [Column("BusinessType","1-订单标价，2-补单")]
        public int BusinessType { get; set; }

		///<summary>
		///退款金额
		///</summary>
        [Column("Price","退款金额")]
        public decimal Price { get; set; }

		///<summary>
		///退款开始时间
		///</summary>
        [Column("RefundStartTime","退款开始时间")]
        public DateTime RefundStartTime { get; set; }

		///<summary>
		///退款结束时间
		///</summary>
        [Column("RefundEndTime","退款结束时间")]
        public DateTime RefundEndTime { get; set; }

		///<summary>
		///1-全额退款，2-部分退款
		///</summary>
        [Column("RefundType","1-全额退款，2-部分退款")]
        public int RefundType { get; set; }

		///<summary>
		///退款状态
		///</summary>
        [Column("RefundState","退款状态")]
        public int RefundState { get; set; }

		///<summary>
		///备注
		///</summary>
        [Column("Remark","备注")]
        public string Remark { get; set; }

		///<summary>
		///操作人Id
		///</summary>
        [Column("OpUserID","操作人Id")]
        public int OpUserID { get; set; }

		///<summary>
		///操作人姓名
		///</summary>
        [Column("OpUserName","操作人姓名")]
        public string OpUserName { get; set; }

		///<summary>
		///平台返回信息
		///</summary>
        [Column("PlatformResult","平台返回信息")]
        public string PlatformResult { get; set; }

		///<summary>
		///创建时间
		///</summary>
        [Column("CrearedDate","创建时间")]
        public DateTime CrearedDate { get; set; }

		///<summary>
		///有效状态
		///</summary>
        [Column("IsActive","有效状态")]
        public int IsActive { get; set; }

	}
}